//
//  BKIntegralCommon.h
//  bestkeep
//
//  Created by yons on 16/12/5.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BKMainCommon.h"
#import "BKintegralModel.h"

#define LocalRemind_KEY @"LocalRemind_KEY"
typedef void(^myCallback) (BOOL isSucess,id obj,NSError *error);

@interface BKIntegralCommon : NSObject

/*
 * 获取气泡坐标
 */
+(CGPoint )point_bubbleWithTag:(int)tag;

+(void)BK_saveString:(NSString *)str withID:(NSString *)IDStr;

+(NSString *)BK_getStringwithID:(NSString *)IDStr;

+(NSString *)getLocalKeyWithSuccess:(BOOL)success;

+(NSString *)getUserId;
//获取字符串宽度
+ (CGFloat)getWidthWithTitle:(NSString *)title font:(CGFloat )font;

//开启本地推送
+(void)openLocalNotification;
//关闭本地通知
+(void)closeLocalNotification;
+(BOOL )isOpenLocalNotification;
//获取积分详情列表
+(void)getUserIntegralRecord:(NSString *)page callback:(myCallback)callback;
//获取签到页数据
+(void)getUserCheckInfo:(myCallback)callback;
//签到
+(void)checkIn_callback:(myCallback)callback;
//获取兑换商品页
+ (void)integralGoods_infoExchangeId:(NSString *)exchangeId callback:(myCallback)callback;
//获取积分兑换商品订单信息
+ (void)integralGoods_exchangeConfirm:(NSString *)exchangeId callback:(myCallback)callback;
//获取购物券信息
+(void)getcouponInfo:(NSString *)couponId callback:(myCallback)callback;
//兑换购物券
+(void)exchangeCoupon:(NSString *)couponId mycallBack:(myCallback)callback;

@end
